package com.broada.apm.dao;

import java.util.List;

import com.broada.apm.model.Analyzer;
import com.broada.apm.model.PagingList;

public interface AnalyzerDao {
	
	/**
	 * 新增Analyzer
	 * @param analyzer
	 */
	public void addAnalyzer(Analyzer analyzer);
	
	/**
	 * 删除Analyzer
	 * @param id
	 */
	public void deleteAnalyzer(String id);
	
	/**
	 * 查询Analyzer
	 * @param id
	 */
	public Analyzer queryAnalyzerByIpAndPort(Analyzer analyzer);
	
	/**
	 * 查询Analyzer
	 * @param id
	 */
	public Analyzer getAnalyzerById(String analyzerId);
	
	/**
	 * 获取Analyzer分页列表
	 * @param analyzer
	 * @param pageIndex
	 * @param pageSize
	 * @param sortField
	 * @param sortBy
	 * @return
	 */
	public PagingList<Analyzer> getAllAnalyzer(int pageIndex, int pageSize);
	
	/**
	 * 获取Analyzer不分页
	 * @param analyzer
	 * @param pageIndex
	 * @param pageSize
	 * @param sortField
	 * @param sortBy
	 * @return
	 */
	public List<Analyzer> getAllAnalyzerNoPage();
}
